package com.YHVision.qiuzhike.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.YHVision.qiuzhike.model.dto.postBankCompany.PostBankCompanyQueryRequest;
import com.YHVision.qiuzhike.model.entity.PostBankCompany;
import com.YHVision.qiuzhike.model.vo.PostBankCompanyVO;

import javax.servlet.http.HttpServletRequest;

/**
 * 职位企业关联服务
 *
 * @author <a href="">YHVision-小y</a>
 * @from <a href="todo">爱编程学习圈</a>
 */
public interface PostBankCompanyService extends IService<PostBankCompany> {

    /**
     * 校验数据
     *
     * @param postBankCompany
     * @param add 对创建的数据进行校验
     */
    void validPostBankCompany(PostBankCompany postBankCompany, boolean add);

    /**
     * 获取查询条件
     *
     * @param postBankCompanyQueryRequest
     * @return
     */
    QueryWrapper<PostBankCompany> getQueryWrapper(PostBankCompanyQueryRequest postBankCompanyQueryRequest);
    
    /**
     * 获取职位企业关联封装
     *
     * @param postBankCompany
     * @param request
     * @return
     */
    PostBankCompanyVO getPostBankCompanyVO(PostBankCompany postBankCompany, HttpServletRequest request);

    /**
     * 分页获取职位企业关联封装
     *
     * @param postBankCompanyPage
     * @param request
     * @return
     */
    Page<PostBankCompanyVO> getPostBankCompanyVOPage(Page<PostBankCompany> postBankCompanyPage, HttpServletRequest request);
}
